﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="SysObjectsDS" targetNamespace="http://tempuri.org/SysObjectsDS.xsd" xmlns:mstns="http://tempuri.org/SysObjectsDS.xsd" xmlns="http://tempuri.org/SysObjectsDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=.;Initial Catalog=PatternsDB;Integrated Security=True" IsAppSettingsProperty="false" Modifier="Public" Name="wsau04686.PatternsDB.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SysObjectsTableAdapter" GeneratorDataComponentClassName="SysObjectsTableAdapter" Name="SysObjects" UserDataComponentName="SysObjectsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="wsau04686.PatternsDB.dbo" DbObjectName="PatternsDB.sys.objects" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>/*	select o.name as name, o.modify_date, o.type from sys.objects o
		where type in ('P' -- stored proc
			,'FN' -- function
			,'U' -- user table
			,'V' -- view
		)*/
SELECT     CASE (s.name) WHEN 'dbo' THEN '' ELSE s.name + '.' END + o.name AS name, o.modify_date, o.type
FROM         sys.objects AS o INNER JOIN
                      sys.schemas AS s ON o.schema_id = s.schema_id
WHERE     (o.type IN ('P', 'FN', 'U', 'V'))</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="name" DataSetColumn="name" />
              <Mapping SourceColumn="modify_date" DataSetColumn="modify_date" />
              <Mapping SourceColumn="type" DataSetColumn="type" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="SysObjectsDS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="SysObjectsDS" msprop:Generator_DataSetName="SysObjectsDS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SysObjects" msprop:Generator_UserTableName="SysObjects" msprop:Generator_RowDeletedName="SysObjectsRowDeleted" msprop:Generator_RowChangedName="SysObjectsRowChanged" msprop:Generator_RowClassName="SysObjectsRow" msprop:Generator_RowChangingName="SysObjectsRowChanging" msprop:Generator_RowEvArgName="SysObjectsRowChangeEvent" msprop:Generator_RowEvHandlerName="SysObjectsRowChangeEventHandler" msprop:Generator_TableClassName="SysObjectsDataTable" msprop:Generator_TableVarName="tableSysObjects" msprop:Generator_RowDeletingName="SysObjectsRowDeleting" msprop:Generator_TablePropName="SysObjects">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="128" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="modify_date" msprop:Generator_UserColumnName="modify_date" msprop:Generator_ColumnVarNameInTable="columnmodify_date" msprop:Generator_ColumnPropNameInRow="modify_date" msprop:Generator_ColumnPropNameInTable="modify_dateColumn" type="xs:dateTime" />
              <xs:element name="type" msprop:Generator_UserColumnName="type" msprop:Generator_ColumnVarNameInTable="columntype" msprop:Generator_ColumnPropNameInRow="type" msprop:Generator_ColumnPropNameInTable="typeColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>